#include "stdafx.h"
#include "Element.h"
#include "SimpleMap.h"
#include "PathFinder.h"
#include "Actions.h"
namespace Core
{
	namespace GameLogic
	{
		Element::Element(Core::Position start,Evironment* e)
			:CommandReceiver(e),now(start)
		{
			//currentAction=stop;
			ParamList* p=new ParamList();
			p->Add("speed",Param(Core::DOUBLE,new double(5)));
			this->AddAction(new Move(this,p));
			this->AddDefaultAction(new Stop());
			//this->AddCommand(new Stop());
		}

	}
}